#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("count.in" , "r" , stdin);
	freopen("count.out" , "w" , stdout);
	int n;
	cin >> n;
	int f[1010] = {0};
	f[1] = 1;
	for(int i = 2 ; i <= n ; i++){
		f[i] = 0;
		for(int j = 1 ; j <= i / 2 ; j++){
			f[i] = f[i] + f[j];
		}
		f[i] += 1;
	}
	cout << f[n] << endl;
	return 0;
}
